import {Commit} from 'vuex'
import { ActionContextBasic } from '../index';
//定义Mutations操作方法
export const M_XX='M_XX'
//定义Getter操作方法
export const G_XX='G_XX'
//定义Action操作方法
export const A_XX='A_XX'
export interface State{
    SearchDelayTime:number,
}
const state:State={
    SearchDelayTime:200
}
const actions={
    [A_XX](context:ActionContextBasic){
        //TODO 发起请求后回掉中使用
        // context.commit(M_XX)
        // 来提交数据
    }
}
const getters={
    [G_XX](){return state.SearchDelayTime}
}
const mutations = {
    [M_XX](state:State,payload:any){
        //TODO 被Action或其他调用后的处理
    }
}
export default {
    actions,state,getters,mutations
}